c program to print the value of a variable (integer and float )

c program to print the value of a variable:- today we will learn how to print variables values.c program to print the value of a variable (integer and float ).

c program to print the value of a variable (integer and float )
c program to print the value of a variable (integer and float )

c program to print the value of a variable

Q. write a program to print the value of the variable (integer and float value)

for Integer:-

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. int a=8;
  6. clrscr();
  7. printf(” %d”,a);
  8. getch();
  9. }

for float:-

#include<stdio.h>

#include<conio.h>

void main()

{

float a;

clrscr();

sacnf(“%d”,&a);

printf(“%f “,a);

getch();

}

Output:

for integer

     8

for float

    3

Also, read these articles

summery

I hope this article helped you in your education.

You can get more large information about tokens and incoming new articles. Let’s follow our blog and support us.

if you have any queries or questions regarding this article you can ask in the comment section. we will reply to you as soon as possible.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

chai shayari | चाय पर शायरी जो आपकी सुबह को यादगार बना दे good morning quotes in hindi with images 2022 for whatsapp good morning shayari | गुड मॉर्निंग शायरी हिंदी में good morning status in hindi | गुड मॉर्निंग स्टेटस हिंदी में good morning image status | गुड मॉर्निंग इमेजेज | gud morning love good morning message in hindi | गुड मॉर्निंग मैसेज हिंदी में Flirty Good Morning Texts For Her | good morning sweetheart good morning message for gf in English good morning message for gf in hindi | गुड मॉर्निंग मैसेज good morning images status
%d bloggers like this: