Advertisement
abrar1

Untitled

May 9th, 2023
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6.     //data type  
  7.    
  8.     int age ;
  9.     age = 20 ;
  10.     float cgpa ;
  11.     cgpa = 3.551 ;
  12.     double bank_balance = 120.000001 ;
  13.     char first_letter ;
  14.     first_letter = 'P';
  15.    
  16.     printf("Proma studies in BUP. Her age is %d.\nHer CGPA is %.2f.\nHer bank balance is %lf.\nThe first letter of her name is %c ", age, cgpa, bank_balance, first_letter);
  17.    
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement