Computer Science, asked by selviabi736, 7 months ago

Hermoine is a very brilliant girl. She has completed her Semester exam. She is eagerly waiting for her CGPA. Her class adviser, Mr.Tom need to upload the CGPA of the student. Can you help him out for the same. He needs to display the CGPA of a student.using c++ program

Answers

Answered by poojan
16

C++:

#include

using namespace std;

int main()

{

float cgpa;

cin>>cgpa;

cout<

return 0;

}

In some other languages:

Python:

cgpa = float(input())        #reading cgpa from Tom

print(cgpa)                      #printing the cgpa extracted for hermoine

Java:

import java.util.*;

public class Main

{

public static void main(String[] args)

{

Scanner scan = new Scanner(System.in);

float cgpa = scan.nextFloat();

System.out.println(cgpa);

}

}

Learn more:

Raju has a square-shaped puzzle made up of small square pieces containing numbers on them. He wants to rearrange the puzzle by changing the elements of a row into a column element and column element into a row element. Help Raju to solve this puzzle

https://brainly.in/question/16956126

Write a Python function sumsquare(l) that takes a nonempty list of integers and returns a list [odd,even], where odd is the sum of squares all the odd numbers in l and even is the sum of squares of all the even numbers in l.

https://brainly.in/question/15473120

Similar questions